package cn.baiweigang.uu.db;

import java.util.Map;

public abstract class BaseDb {

    protected static String getUpdateSql(Map<String, String> map) {
        String fields = "";
        for (String key : map.keySet()) {
            fields += key + " = '" + map.get(key) + "', ";
        }
        fields = fields.substring(0, fields.length() - 2);
        return fields;
    }
}
